﻿#ifndef RESERVEHOTEL_H
#define RESERVEHOTEL_H

#include <QWidget>
#include "globalvars.h"
#include <QDebug>
#include <QDate>
#include "mydate.h"

namespace Ui {
class ReserveHotel;
}

class ReserveHotel : public QWidget
{
    Q_OBJECT
signals:
    void signalSubmitReserve();
public:
    explicit ReserveHotel(QWidget *parent = nullptr);
    ~ReserveHotel();

    void setReserveTime(const QString& inTime, const QString& outTime);
    void setHotel(const HotelInfo& hotelInfo);
    void setHouse(const HouseInfo& houseInfo);
    void setImage(const QImage& image);
    void submitReserveResult(bool result, const QString& msg);

private slots:
    void on_pb_finish_clicked();
    void on_cb_comeTime_currentIndexChanged(const QString &arg1);
    void on_le_phone_editingFinished();
    void on_le_inManName_editingFinished();

    void on_le_inManName_textChanged(const QString &arg1);
    void on_le_phone_textChanged(const QString &arg1);

private:
    Ui::ReserveHotel *ui;
    ReserveInfo m_reserveInfo;
};

#endif // RESERVEHOTEL_H
